using AnQinFrameWorkAPI.Common.Enum;

namespace AnQinFrameWorkAPI.Entity.Finance.View.FinanceDetail;

/// <summary>
///     账目消费明细视图
/// </summary>
public class FinanceDetailView
{
    /// <summary>
    ///     id
    /// </summary>
    public string Id { get; set; }

    /// <summary>
    ///     用户id
    /// </summary>
    public string UserId { get; set; }

    /// <summary>
    ///     分类id
    /// </summary>
    public string FinanceCategoryId { get; set; }

    /// <summary>
    ///     账户id
    /// </summary>
    public string FinanceAccountId { get; set; }

    /// <summary>
    ///     消费名称
    /// </summary>
    public string Name { get; set; }

    /// <summary>
    ///     金额
    /// </summary>
    public decimal Amount { get; set; }

    /// <summary>
    ///     类型（枚举：支出或者收入）
    /// </summary>
    public FinanceEnum.FinanceDetailTypeEnum Type { get; set; }

    /// <summary>
    ///     收支时间
    /// </summary>
    public DateTime TransactionTime { get; set; }

    /// <summary>
    ///     备注
    /// </summary>
    public string? Remark { get; set; }

    /// <summary>
    ///     附件
    /// </summary>
    public string? Attachment { get; set; }

    /// <summary>
    ///     创建时间
    /// </summary>
    public DateTime CreateTime { get; set; }
}